﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DXApplicationTangche.UC.金蝶.金蝶收款单.Service
{
    public class 金蝶收款单Service
    {
    }
    public class FBillTypeID
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNUMBER { get; set; }
        public FBillTypeID(String xxx)
        {
            this.FNUMBER = xxx;
        }
    }

    public class FCONTACTUNIT
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNumber { get; set; }
        public FCONTACTUNIT(String xxx)
        {
            this.FNumber = xxx;
        }
    }

    public class FPAYUNIT
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNumber { get; set; }
        public FPAYUNIT(String xxx)
        {
            this.FNumber = xxx;
        }
    }

    public class FCURRENCYID
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNumber { get; set; }
    }

    public class FSALEDEPTID
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNumber { get; set; }
    }

    public class FSALEGROUPID
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNumber { get; set; }
    }

    public class FSALEERID
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNumber { get; set; }
    }

    public class FDepartment
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNumber { get; set; }
    }

    public class FScanPoint
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNUMBER { get; set; }
    }

    public class FPRESETBASE1
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNUMBER { get; set; }
    }

    public class FPRESETBASE2
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNUMBER { get; set; }
    }

    public class FSETTLECUR
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNUMBER { get; set; }
    }

    public class FSETTLEMAINBOOKID
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNUMBER { get; set; }
    }

    public class FPRESETASSISTANT1
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNumber { get; set; }
    }

    public class FPRESETASSISTANT2
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNumber { get; set; }
    }

    public class FSETTLETYPEID
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNumber { get; set; }
        public FSETTLETYPEID(String xxx)
        {
            this.FNumber = xxx;
        }
    }

    public class FPURPOSEID
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNumber { get; set; }
        public FPURPOSEID(String xxx)
        {
            this.FNumber = xxx;
        }
    }

    public class FACCOUNTID
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNumber { get; set; }
        public FACCOUNTID(String xxx)
        {
            this.FNumber = xxx;
        }
    }

    public class FINNERACCOUNTID
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNUMBER { get; set; }
    }

    public class FCashAccount
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNUMBER { get; set; }
    }

    public class FMATERIALID
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNUMBER { get; set; }
    }

    public class FPRICEUNITID
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNumber { get; set; }
    }

    public class FCOSTID
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNUMBER { get; set; }
    }

    public class FCOSTDEPARTMENTID
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNUMBER { get; set; }
    }

    public class FASSSALESORDERItem
    {
        /// <summary>
        /// 
        /// </summary>
        public int FDetailID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FOVERRECAMOUNT { get; set; }
    }

    public class FRECEIVEBILLENTRYItem
    {
        /// <summary>
        /// 
        /// </summary>
        public int FEntryID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FSETTLETYPEID FSETTLETYPEID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FPURPOSEID FPURPOSEID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FRECEIVEITEMTYPE { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FRECEIVEITEM { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FSaleOrderID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double FRECTOTALAMOUNTFOR { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double FRECAMOUNTFOR_E { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FSETTLEDISTAMOUNTFOR { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FHANDLINGCHARGEFOR { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FOVERUNDERAMOUNTFOR { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FACCOUNTID FACCOUNTID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FOPPOSITEBANKACCOUNT { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FOPPOSITECCOUNTNAME { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FINNERACCOUNTID FINNERACCOUNTID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FCashAccount FCashAccount { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FSETTLENO { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FOPPOSITEBANKNAME { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FCOMMENT { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FRECAMOUNT_E { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FPOSTDATE { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FMATERIALID FMATERIALID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FPRICEUNITID FPRICEUNITID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FSALEORDERNO { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FPrice { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FMATERIALSEQ { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FQty { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FORDERENTRYID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FNOTVERIFICATEAMOUNT { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FCOSTID FCOSTID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FCOSTDEPARTMENTID FCOSTDEPARTMENTID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FLinkRowId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<FASSSALESORDERItem> FASSSALESORDER { get; set; }
        public FRECEIVEBILLENTRYItem(String fSETTLETYPEID, String fPURPOSEID, double FRECTOTALAMOUNTFOR, String fACCOUNTID)
        {
            this.FSETTLETYPEID = new FSETTLETYPEID(fSETTLETYPEID);
            this.FPURPOSEID = new FPURPOSEID(fPURPOSEID);
            this.FRECTOTALAMOUNTFOR = FRECTOTALAMOUNTFOR;
            this.FRECAMOUNTFOR_E = FRECTOTALAMOUNTFOR;
            this.FACCOUNTID = new FACCOUNTID(fACCOUNTID);
        }
    }

    public class FSRCMATERIALID
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNumber { get; set; }
    }

    public class FSRCPRICEUNITID
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNumber { get; set; }
    }

    public class FSRCCOSTID
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNUMBER { get; set; }
    }

    public class FSRCCOSTDEPARTMENTID
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNUMBER { get; set; }
    }

    public class FRECEIVEBILLSRCENTRYItem
    {
        /// <summary>
        /// 
        /// </summary>
        public int FEntryID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FORDERBILLNO { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FSRCMATERIALID FSRCMATERIALID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FSRCPRICEUNITID FSRCPRICEUNITID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FSRCMATERIALSEQ { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FSRCPRICE { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FSRCORDERENTRYID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FSRCQTY { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FREALRECAMOUNTFOR_S { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FSRCCOSTID FSRCCOSTID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FSRCCOSTDEPARTMENTID FSRCCOSTDEPARTMENTID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FSrcLinkRowId { get; set; }
    }

    public class FInnerAccountID_B
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNUMBER { get; set; }
    }

    public class FBILLID
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNumber { get; set; }
    }

    public class FBILLRECEIVABLEENTRYItem
    {
        /// <summary>
        /// 
        /// </summary>
        public int FEntryID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FInnerAccountID_B FInnerAccountID_B { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FBILLID FBILLID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FUSEDAMOUNTFOR { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FBILLPARAMOUNT { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FPARLEFTAMOUNTSTD { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FUSEDAMOUNTSTD { get; set; }
    }

    public class FInnerActId
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNUMBER { get; set; }
    }

    public class FReceivebleBillId
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNUMBER { get; set; }
    }

    public class FPayPurse
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNUMBER { get; set; }
    }

    public class FBCONTACTUNIT
    {
        /// <summary>
        /// 
        /// </summary>
        public string FNumber { get; set; }
    }

    public class FBILLSKDRECENTRYItem
    {
        /// <summary>
        /// 
        /// </summary>
        public int FEntryID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FInnerActId FInnerActId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FReceivebleBillId FReceivebleBillId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FPayPurse FPayPurse { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FReturnAmount { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FReturnAmountStd { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FKDBPARBILLNO { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FParAmount { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FPARAMOUNTSTD { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FBCONTACTUNITTYPE { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FBCONTACTUNIT FBCONTACTUNIT { get; set; }
    }

    public class Model
    {
        /// <summary>
        /// 
        /// </summary>
        public int FID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FBillTypeID FBillTypeID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FBillNo { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FDATE { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FCONTACTUNITTYPE { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FCONTACTUNIT FCONTACTUNIT { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FPAYUNITTYPE { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FPAYUNIT FPAYUNIT { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FCURRENCYID FCURRENCYID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FSETTLERATE { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FSALEDEPTID FSALEDEPTID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FSALEGROUPID FSALEGROUPID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FSALEERID FSALEERID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FDOCUMENTSTATUS { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FDepartment FDepartment { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FBUSINESSTYPE { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FISINIT { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FEXCHANGERATE { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FCancelStatus { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FScanPoint FScanPoint { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FPRESETBASE1 FPRESETBASE1 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FPRESETBASE2 FPRESETBASE2 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FSETTLECUR FSETTLECUR { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FISB2C { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FIsWriteOff { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int FMatchMethodID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FKDPAYNO { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FREMARK { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FTHIRDBILLNO { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FSETTLEMAINBOOKID FSETTLEMAINBOOKID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FISCARRYRATE { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FPRESETASSISTANT1 FPRESETASSISTANT1 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public FPRESETASSISTANT2 FPRESETASSISTANT2 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FPRESETTEXT1 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FPRESETTEXT2 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<FRECEIVEBILLENTRYItem> FRECEIVEBILLENTRY { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<FRECEIVEBILLSRCENTRYItem> FRECEIVEBILLSRCENTRY { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<FBILLRECEIVABLEENTRYItem> FBILLRECEIVABLEENTRY { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<FBILLSKDRECENTRYItem> FBILLSKDRECENTRY { get; set; }
        public Model(String fBillTypeID, String FPAYUNITTYPE, String fPAYUNIT, String FCONTACTUNITTYPE, String fCONTACTUNIT, String FDATE,List<FRECEIVEBILLENTRYItem> fRECEIVEBILLENTRYItems)
        {
            this.FBillTypeID = new FBillTypeID(fBillTypeID);
            this.FPAYUNITTYPE = FPAYUNITTYPE;
            this.FPAYUNIT = new FPAYUNIT(fPAYUNIT);
            this.FCONTACTUNITTYPE = FCONTACTUNITTYPE;
            this.FCONTACTUNIT = new FCONTACTUNIT(fCONTACTUNIT);
            this.FDATE = FDATE;
            this.FRECEIVEBILLENTRY = new List<FRECEIVEBILLENTRYItem>();
            foreach (FRECEIVEBILLENTRYItem fRECEIVEBILLENTRYItem in fRECEIVEBILLENTRYItems)
            {
                this.FRECEIVEBILLENTRY.Add(new FRECEIVEBILLENTRYItem(fRECEIVEBILLENTRYItem.FSETTLETYPEID.FNumber, fRECEIVEBILLENTRYItem.FPURPOSEID.FNumber, fRECEIVEBILLENTRYItem.FRECTOTALAMOUNTFOR, fRECEIVEBILLENTRYItem.FACCOUNTID.FNumber));
            }
        }
    }

    public class ReceieveBilRoot
    {
        /// <summary>
        /// 
        /// </summary>
        public List<string> NeedUpDateFields { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> NeedReturnFields { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string IsDeleteEntry { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string SubSystemId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string IsVerifyBaseDataField { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string IsEntryBatchFill { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string ValidateFlag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string NumberSearch { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string IsAutoAdjustField { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string InterationFlags { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string IgnoreInterationFlag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Model Model { get; set; }
        public ReceieveBilRoot(
            String fBillTypeID, 
            String FPAYUNITTYPE, 
            String fPAYUNIT, 
            String FCONTACTUNITTYPE, 
            String fCONTACTUNIT,
            String FDATE,
            List<FRECEIVEBILLENTRYItem> fRECEIVEBILLENTRYItems)
        {
            this.Model = new Model(fBillTypeID, FPAYUNITTYPE, fPAYUNIT, FCONTACTUNITTYPE, fCONTACTUNIT, FDATE, fRECEIVEBILLENTRYItems);
        }
    }
}
